package com.wn.controller;

import  com.wn.entity.Student;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Controller
@RequestMapping("get")
public class GetController {
    private final Logger logger = LoggerFactory.getLogger(GetController.class);

    @GetMapping("/test1")
    public  void test1(String name ,int age) {
        logger.info("name{},age{}",name,age);
    }
    @GetMapping("/test2")
    public void test2(Student student){
       // logger.info("name{},age{}",student.getName(),student.getId());

        System.out.println(student);
    }



}
